package a.c;

class o
{
  private c a;
  private c b;
  private int c;
  
  public int a()
  {
    return this.c;
  }
  
  boolean b()
  {
    if (z.f == 0) {}
    return this.c == 0;
  }
  
  c c()
  {
    return this.a;
  }
  
  c d()
  {
    return this.b;
  }
  
  c a(c paramc)
  {
    return paramc.a();
  }
  
  c b(c paramc)
  {
    return paramc.b();
  }
  
  public void c(c paramc)
  {
    int i = z.f;
    this.c += 1;
    paramc.c(this.b);
    paramc.a(null);
    if (i == 0) {
      if (this.b != null)
      {
        this.b.a(paramc);
        if (i != 0) {
          break label68;
        }
        this.b = paramc;
        if (z.e == 0) {
          return;
        }
      }
    }
    label68:
    this.b = (this.a = paramc);
  }
  
  void a(c paramc1, c paramc2, int paramInt)
  {
    int j = z.f;
    int i = z.e;
    if (j == 0)
    {
      if (paramc2 == null) {
        c(paramc1);
      }
    }
    else {
      return;
    }
    c localc;
    if (paramInt == 1)
    {
      localc = paramc2.b();
      if ((j != 0) || (localc != null))
      {
        localc.a(paramc1);
        if (j != 0) {
          break label90;
        }
        if (i == 0) {}
      }
      else
      {
        this.a = paramc1;
      }
      paramc1.c(localc);
      paramc1.a(paramc2);
      paramc2.c(paramc1);
      if (j != 0) {
        return;
      }
      label90:
      if (i == 0) {}
    }
    else
    {
      localc = paramc2.a();
      if ((j != 0) || (localc != null))
      {
        localc.c(paramc1);
        if (j != 0) {
          break label141;
        }
        if (i == 0) {}
      }
      else
      {
        this.b = paramc1;
      }
      paramc1.a(localc);
      paramc1.c(paramc2);
      label141:
      paramc2.a(paramc1);
    }
    this.c += 1;
  }
  
  void d(c paramc)
  {
    int j = z.f;
    int i = z.e;
    c localc1 = paramc.a();
    c localc2 = paramc.b();
    if (j == 0)
    {
      this.c -= 1;
      if (localc1 != null)
      {
        if (j != 0) {
          break label60;
        }
        localc1.c(localc2);
        if (i == 0) {
          break label59;
        }
      }
    }
    this.b = localc2;
    label59:
    label60:
    if ((j != 0) || (localc2 != null))
    {
      localc2.a(localc1);
      if (i == 0) {}
    }
    else
    {
      this.a = localc1;
    }
  }
  
  c e()
  {
    return this.a;
  }
  
  c f()
  {
    return this.b;
  }
  
  boolean e(c paramc)
  {
    if (z.f == 0) {}
    return f(paramc) > -1;
  }
  
  int f(c paramc)
  {
    int k = z.f;
    int j = z.e;
    int i = 0;
    c localc = this.a;
    if (localc != null)
    {
      if (k == 0)
      {
        if (localc == paramc) {
          return i;
        }
        i++;
      }
      localc = localc.a();
    }
    while (k != 0) {
      if (j == 0) {
        break;
      }
    }
    return -1;
  }
  
  c a(int paramInt)
  {
    int k = z.f;
    int j = z.e;
    c localc = this.a;
    int i = 0;
    if (i < paramInt) {
      i++;
    }
    while (k != 0)
    {
      if (k == 0)
      {
        if (j != 0) {
          break label51;
        }
        localc = localc.a();
      }
      if (j == 0) {
        break;
      }
    }
    label51:
    return localc;
  }
  
  void g()
  {
    this.a = null;
    this.b = null;
    this.c = 0;
  }
  
  b h()
  {
    return new a_();
  }
  
  class a_
    implements b
  {
    private c a = o.this.a;
    
    a_() {}
    
    public boolean e()
    {
      return this.a != null;
    }
    
    public void f()
    {
      this.a = this.a.a;
    }
    
    public void g()
    {
      this.a = this.a.c;
    }
    
    public void i()
    {
      this.a = o.this.b;
    }
    
    public void h()
    {
      this.a = o.this.a;
    }
    
    public int k()
    {
      return o.this.c;
    }
    
    public Object j()
    {
      return this.a;
    }
    
    public e d()
    {
      return (e)this.a;
    }
    
    public d a()
    {
      return (d)this.a;
    }
    
    public void b()
    {
      f();
      if ((z.f != 0) || (!e())) {
        h();
      }
    }
    
    public void c()
    {
      g();
      if ((z.f != 0) || (!e())) {
        i();
      }
    }
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.c.o
 * JD-Core Version:    0.7.0.1
 */